package com.harmontronics.hanma.paas.paas.dto.input.process;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 流程
 *
 * @author paas-generator
 * @email paas-generator@harmontronics.com
 * @date 2021-04-02 10:54:59
 */
@Data
public class HmProcessCopyInput {

    @ApiModelProperty(value = "源流程ID")
    @NotNull(message = "hm.pass.field_non_nullable")
    private Long sourceId;

    /**
     * 流程名称
     */
    @ApiModelProperty(value = "流程名称")
    @NotNull(message = "hm.pass.field_non_nullable")
    @NotEmpty(message = "hm.pass.field_non_nullable")
    @NotBlank(message = "hm.pass.field_non_nullable")
    private String name;

    /**
     * 流程KEY
     */
    @ApiModelProperty(value = "流程KEY")
    @NotNull(message = "hm.pass.field_non_nullable")
    @NotEmpty(message = "hm.pass.field_non_nullable")
    @NotBlank(message = "hm.pass.field_non_nullable")
    private String key;


    /**
     * 流程描述
     */
    @ApiModelProperty(value = "流程描述")
    private String description;

}
